<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title>导出数据信息</title>
    <link href="css/bootstrap-cerulean.css" rel="stylesheet">
    <link href="css/charisma-app.css" rel="stylesheet">
    <link href='css/chosen.css' rel='stylesheet'>
    <link href='css/uniform.default.css' rel='stylesheet'>
    <link href='css/uploadify.css' rel='stylesheet'>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }

        .sidebar-nav {
            padding: 9px 0;
        }
    </style>
    <script src="http://lib.sinaapp.com/js/jquery/2.2.4/jquery-2.2.4.min.js"></script>
    <script src="js/common/public.js"></script>
    <script src="js/base64.js"></script>
    <script src="js/bootstrap-modal.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {

            var urlMsg = parseUrl(window.location.search);
            $("#token").val(urlMsg.token);

            var html = $.ajax({
                type: "GET",
                url: "http://localhost:1066/student/findStudentScoreTable?token=" + urlMsg.token,
                async: false
            }).responseText;
            var result = eval('(' + html + ')');
            if (result.code != 200) {
                alert(result.msg)
            } else {
                if (result.data != null) {
                    for (index in result.data) {
                        $("#term").append("<option value='" + result.data[index] + "'>" + result.data[index].substring(16,25)+"第"+result.data[index].substring(26,28)+"学期" + "</option>")
                    }
                }
            }
        });


        function findDetails() {
            var term = $("#term").val();
            var urlMsg = parseUrl(window.location.search);
            window.location.href="historyScoreDetails.html?token="+urlMsg.token+"&term="+term;
        }
    </script>

</head>

<body>
<div class="container-fluid"
     style="padding-left:0px;padding-right:2px;">
    <div class="row-fluid">
        <div id="content" class="span10" style="width:100%;">
            <div class="row-fluid sortable">
                <div class="box span12">
                    <div class="box-header well">
                        <h2>
                            <i class="icon-edit"></i>查询历史操行
                        </h2>
                    </div>
                    <div class="box-content" style="text-align:center; padding-top:50px">
                        <form action="" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="operatetype" value="export">
                            <fieldset>
                                <br>
                                <h1>查询历史操行</h1>
                                <br>
                                <br>
                                <br>
                                <div class="control-group">
                                    <div class="controls">
                                        <span style="font-size:14px">选择查询学期：</span>
                                        <select name="term" id="term" style="width:190px;">

                                        </select>
                                    </div>
                                </div>
                                <br>
                                <br>
                                <br>
                                <div class="form-actions">
                                    <button type="button" onclick="findDetails()" class="btn btn-primary" style="width:100px;">提交</button>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <button class="btn" onclick="javascript:history.go(-1);" type="reset"
                                            style="width:100px;">取消
                                    </button>
                                </div>
                            </fieldset>
                        </form>


                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>